<?php

class all_extra_data extends a_dynamic_prop {

    public function get_property_name(){
        return $this->_prefix()."all_extra_data";
    }

    public function run( i_base_model $caller){
        if($this->id){
            $product_service = new service_l_product();
            return $product_service->get_extra_field_data($this->id);
        }else{
            return NULL;
        }
    }

    public function for_model(){
        return "product_m_product";
    }

    public function run_once(){
        return FALSE;
    }
}
?>